/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package koala;

/**
 *
 * @author yssa laguit
 */
public class AdminUI extends javax.swing.JFrame {

    /**
     * Creates new form AdminUI
     */
    public AdminUI() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        serverToggle = new javax.swing.JButton();
        usersButton = new javax.swing.JButton();
        projectsButton = new javax.swing.JButton();
        myAccButton = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(801, 550));
        setPreferredSize(new java.awt.Dimension(801, 472));
        setResizable(false);
        getContentPane().setLayout(null);

        serverToggle.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/server.png"))); // NOI18N
        serverToggle.setBorderPainted(false);
        serverToggle.setContentAreaFilled(false);
        serverToggle.setFocusable(false);
        serverToggle.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/images/serverHover.png"))); // NOI18N
        serverToggle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                serverToggleActionPerformed(evt);
            }
        });
        getContentPane().add(serverToggle);
        serverToggle.setBounds(60, 200, 210, 200);

        usersButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/users.png"))); // NOI18N
        usersButton.setBorderPainted(false);
        usersButton.setContentAreaFilled(false);
        usersButton.setFocusable(false);
        usersButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/images/usersHover.png"))); // NOI18N
        getContentPane().add(usersButton);
        usersButton.setBounds(294, 190, 210, 210);

        projectsButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/projects.png"))); // NOI18N
        projectsButton.setBorderPainted(false);
        projectsButton.setContentAreaFilled(false);
        projectsButton.setFocusable(false);
        projectsButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/images/projectsHover.png"))); // NOI18N
        projectsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                projectsButtonActionPerformed(evt);
            }
        });
        getContentPane().add(projectsButton);
        projectsButton.setBounds(530, 190, 210, 210);

        myAccButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/usericon.png"))); // NOI18N
        myAccButton.setBorderPainted(false);
        myAccButton.setFocusPainted(false);
        getContentPane().add(myAccButton);
        myAccButton.setBounds(730, 10, 50, 50);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/koalaProjectSmall.png"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(10, 10, 210, 120);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/background.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, -10, 810, 540);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void serverToggleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_serverToggleActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_serverToggleActionPerformed

    private void projectsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_projectsButtonActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_projectsButtonActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(AdminUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(AdminUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(AdminUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(AdminUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new AdminUI().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JButton myAccButton;
    private javax.swing.JButton projectsButton;
    private javax.swing.JButton serverToggle;
    private javax.swing.JButton usersButton;
    // End of variables declaration//GEN-END:variables
}
